package com.qf.ym.mapper;

import com.qf.ym.entity.AdminEntity;
import com.qf.ym.pojo.AdminPojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

    /**
     * 管理员登录
     * @param ae
     * @return 查询到这个管理员的权限信息
     */
    public AdminPojo adminLogin(AdminEntity ae);

    public List<AdminPojo> adminList(AdminEntity ae);

    public boolean delAdmin(@Param("aids") String aids);

    public boolean adminAdd(AdminEntity ae);

    public boolean bindAdminRole(@Param("aid") int aid, @Param("rid") int rid);

    public boolean editAdmin(AdminEntity ae);

    public boolean deleteAdminRoles(AdminEntity ae);


}
